home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{BCB28BD5-6F6A-11D2-BBA4-444553540000}#1.0#0"; "HIDER.OCX"
- Begin VB.Form Form1
- Caption = "Hider control sample application"
- ClientHeight = 4815
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4950
- LinkTopic = "Form1"
- ScaleHeight = 4815
- ScaleWidth = 4950
- StartUpPosition = 2 'CenterScreen
- Begin VB.CommandButton Command6
- Caption = "AutoRun Service"
- Height = 255
- Left = 3000
- TabIndex = 6
- Top = 4440
- Width = 1575
- End
- Begin VB.CommandButton Command5
- Caption = "AutoRun Once"
- Height = 255
- Left = 3000
- TabIndex = 5
- Top = 4080
- Width = 1575
- End
- Begin VB.CommandButton Command3
- Caption = "Autorun"
- Height = 255
- Left = 3000
- TabIndex = 4
- Top = 3720
- Width = 1575
- End
- Begin VB.CommandButton Command2
- Caption = "None"
- Height = 255
- Left = 3000
- TabIndex = 3
- Top = 3360
- Width = 1575
- End
- Begin VB.CommandButton Command1
- Caption = "View current status"
- Height = 495
- Left = 240
- TabIndex = 2
- Top = 3600
- Width = 2415
- End
- Begin VB.CommandButton Command4
- Caption = "Go !"
- BeginProperty Font
- Name = "Arial Black"
- Size = 15.75
- Charset = 204
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 735
- Left = 1680
- TabIndex = 0
- Top = 960
- Width = 1695
- End
- Begin VB.Timer Timer1
- Enabled = 0 'False
- Interval = 10000
- Left = 960
- Top = 1800
- End
- Begin VB.Label Label3
- Alignment = 2 'Center
- Caption = "Set AutoRun status"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 204
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 2640
- TabIndex = 8
- Top = 3000
- Width = 2175
- End
- Begin VB.Label Label2
- Alignment = 2 'Center
- Caption = "AutoRun feature"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 204
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 7
- Top = 2520
- Width = 4695
- End
- Begin VB.Line Line1
- BorderWidth = 2
- X1 = 0
- X2 = 4920
- Y1 = 2400
- Y2 = 2400
- End
- Begin VB.Label Label1
- Caption = $"hiderSample.frx":0000
- Height = 615
- Left = 120
- TabIndex = 1
- Top = 120
- Width = 4695
- End
- Begin HIDERLibCtl.Hider Hider1
- Left = 1560
- OleObjectBlob = "hiderSample.frx":00CC
- Top = 1800
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Dim state As AutoRunConstants
- state = Hider1.AutoRun
- If state = AutoRunNone Then MsgBox ("AutoRunNone")
- If state = AutoRun Then MsgBox ("AutoRun")
- If state = AutoRunOnce Then MsgBox ("AutoRunOnce")
- If state = AutoRunService Then MsgBox ("AutoRunService")
- End Sub
- Private Sub Command2_Click()
- Hider1.AutoRun = AutoRunNone
- End Sub
- Private Sub Command3_Click()
- Hider1.AutoRun = AutoRun
- End Sub
- Private Sub Command4_Click()
- Timer1.Enabled = True
- Hider1.AppVisible = False
- End Sub
- Private Sub Command5_Click()
- Hider1.AutoRun = AutoRunOnce
- End Sub
- Private Sub Command6_Click()
- Hider1.AutoRun = AutoRunService
- End Sub
- Private Sub Timer1_Timer()
- Timer1.Enabled = False
- Hider1.AppVisible = True
- End Sub
-